package com.tougutips.auth.api;

import com.ruoyi.common.core.web.domain.AjaxResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;

/**
 * 用户信息服务调用,暂时不能用spring.factories配置此Bean，只有在项目里面使用，抽出来报错:Specified class is an interface
 */
@FeignClient(value = "tougutips-user-info")
public interface RemoteUserInfoService {
    @GetMapping("/userinfo/phone/{account}")
    AjaxResult getUserByAccount(@PathVariable("account") String account);
    @PostMapping("/userinfo")
    AjaxResult addUser(String account);
    @GetMapping("userinfo/list")
    AjaxResult list();
}
